package com.pojo;

import java.util.ArrayList;
import java.util.List;

public class OrderExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public OrderExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andO_numIsNull() {
            addCriterion("o_num is null");
            return (Criteria) this;
        }

        public Criteria andO_numIsNotNull() {
            addCriterion("o_num is not null");
            return (Criteria) this;
        }

        public Criteria andO_numEqualTo(Integer value) {
            addCriterion("o_num =", value, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numNotEqualTo(Integer value) {
            addCriterion("o_num <>", value, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numGreaterThan(Integer value) {
            addCriterion("o_num >", value, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numGreaterThanOrEqualTo(Integer value) {
            addCriterion("o_num >=", value, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numLessThan(Integer value) {
            addCriterion("o_num <", value, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numLessThanOrEqualTo(Integer value) {
            addCriterion("o_num <=", value, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numIn(List<Integer> values) {
            addCriterion("o_num in", values, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numNotIn(List<Integer> values) {
            addCriterion("o_num not in", values, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numBetween(Integer value1, Integer value2) {
            addCriterion("o_num between", value1, value2, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_numNotBetween(Integer value1, Integer value2) {
            addCriterion("o_num not between", value1, value2, "o_num");
            return (Criteria) this;
        }

        public Criteria andO_idIsNull() {
            addCriterion("o_id is null");
            return (Criteria) this;
        }

        public Criteria andO_idIsNotNull() {
            addCriterion("o_id is not null");
            return (Criteria) this;
        }

        public Criteria andO_idEqualTo(String value) {
            addCriterion("o_id =", value, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idNotEqualTo(String value) {
            addCriterion("o_id <>", value, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idGreaterThan(String value) {
            addCriterion("o_id >", value, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idGreaterThanOrEqualTo(String value) {
            addCriterion("o_id >=", value, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idLessThan(String value) {
            addCriterion("o_id <", value, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idLessThanOrEqualTo(String value) {
            addCriterion("o_id <=", value, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idLike(String value) {
            addCriterion("o_id like", value, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idNotLike(String value) {
            addCriterion("o_id not like", value, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idIn(List<String> values) {
            addCriterion("o_id in", values, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idNotIn(List<String> values) {
            addCriterion("o_id not in", values, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idBetween(String value1, String value2) {
            addCriterion("o_id between", value1, value2, "o_id");
            return (Criteria) this;
        }

        public Criteria andO_idNotBetween(String value1, String value2) {
            addCriterion("o_id not between", value1, value2, "o_id");
            return (Criteria) this;
        }

        public Criteria andP_idIsNull() {
            addCriterion("p_id is null");
            return (Criteria) this;
        }

        public Criteria andP_idIsNotNull() {
            addCriterion("p_id is not null");
            return (Criteria) this;
        }

        public Criteria andP_idEqualTo(String value) {
            addCriterion("p_id =", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idNotEqualTo(String value) {
            addCriterion("p_id <>", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idGreaterThan(String value) {
            addCriterion("p_id >", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idGreaterThanOrEqualTo(String value) {
            addCriterion("p_id >=", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idLessThan(String value) {
            addCriterion("p_id <", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idLessThanOrEqualTo(String value) {
            addCriterion("p_id <=", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idLike(String value) {
            addCriterion("p_id like", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idNotLike(String value) {
            addCriterion("p_id not like", value, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idIn(List<String> values) {
            addCriterion("p_id in", values, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idNotIn(List<String> values) {
            addCriterion("p_id not in", values, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idBetween(String value1, String value2) {
            addCriterion("p_id between", value1, value2, "p_id");
            return (Criteria) this;
        }

        public Criteria andP_idNotBetween(String value1, String value2) {
            addCriterion("p_id not between", value1, value2, "p_id");
            return (Criteria) this;
        }

        public Criteria andC_idIsNull() {
            addCriterion("c_id is null");
            return (Criteria) this;
        }

        public Criteria andC_idIsNotNull() {
            addCriterion("c_id is not null");
            return (Criteria) this;
        }

        public Criteria andC_idEqualTo(Integer value) {
            addCriterion("c_id =", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idNotEqualTo(Integer value) {
            addCriterion("c_id <>", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idGreaterThan(Integer value) {
            addCriterion("c_id >", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idGreaterThanOrEqualTo(Integer value) {
            addCriterion("c_id >=", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idLessThan(Integer value) {
            addCriterion("c_id <", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idLessThanOrEqualTo(Integer value) {
            addCriterion("c_id <=", value, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idIn(List<Integer> values) {
            addCriterion("c_id in", values, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idNotIn(List<Integer> values) {
            addCriterion("c_id not in", values, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idBetween(Integer value1, Integer value2) {
            addCriterion("c_id between", value1, value2, "c_id");
            return (Criteria) this;
        }

        public Criteria andC_idNotBetween(Integer value1, Integer value2) {
            addCriterion("c_id not between", value1, value2, "c_id");
            return (Criteria) this;
        }

        public Criteria andO_moneyIsNull() {
            addCriterion("o_money is null");
            return (Criteria) this;
        }

        public Criteria andO_moneyIsNotNull() {
            addCriterion("o_money is not null");
            return (Criteria) this;
        }

        public Criteria andO_moneyEqualTo(Integer value) {
            addCriterion("o_money =", value, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyNotEqualTo(Integer value) {
            addCriterion("o_money <>", value, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyGreaterThan(Integer value) {
            addCriterion("o_money >", value, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyGreaterThanOrEqualTo(Integer value) {
            addCriterion("o_money >=", value, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyLessThan(Integer value) {
            addCriterion("o_money <", value, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyLessThanOrEqualTo(Integer value) {
            addCriterion("o_money <=", value, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyIn(List<Integer> values) {
            addCriterion("o_money in", values, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyNotIn(List<Integer> values) {
            addCriterion("o_money not in", values, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyBetween(Integer value1, Integer value2) {
            addCriterion("o_money between", value1, value2, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_moneyNotBetween(Integer value1, Integer value2) {
            addCriterion("o_money not between", value1, value2, "o_money");
            return (Criteria) this;
        }

        public Criteria andO_remarksIsNull() {
            addCriterion("o_remarks is null");
            return (Criteria) this;
        }

        public Criteria andO_remarksIsNotNull() {
            addCriterion("o_remarks is not null");
            return (Criteria) this;
        }

        public Criteria andO_remarksEqualTo(String value) {
            addCriterion("o_remarks =", value, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksNotEqualTo(String value) {
            addCriterion("o_remarks <>", value, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksGreaterThan(String value) {
            addCriterion("o_remarks >", value, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksGreaterThanOrEqualTo(String value) {
            addCriterion("o_remarks >=", value, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksLessThan(String value) {
            addCriterion("o_remarks <", value, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksLessThanOrEqualTo(String value) {
            addCriterion("o_remarks <=", value, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksLike(String value) {
            addCriterion("o_remarks like", value, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksNotLike(String value) {
            addCriterion("o_remarks not like", value, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksIn(List<String> values) {
            addCriterion("o_remarks in", values, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksNotIn(List<String> values) {
            addCriterion("o_remarks not in", values, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksBetween(String value1, String value2) {
            addCriterion("o_remarks between", value1, value2, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_remarksNotBetween(String value1, String value2) {
            addCriterion("o_remarks not between", value1, value2, "o_remarks");
            return (Criteria) this;
        }

        public Criteria andO_stateIsNull() {
            addCriterion("o_state is null");
            return (Criteria) this;
        }

        public Criteria andO_stateIsNotNull() {
            addCriterion("o_state is not null");
            return (Criteria) this;
        }

        public Criteria andO_stateEqualTo(Integer value) {
            addCriterion("o_state =", value, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateNotEqualTo(Integer value) {
            addCriterion("o_state <>", value, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateGreaterThan(Integer value) {
            addCriterion("o_state >", value, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateGreaterThanOrEqualTo(Integer value) {
            addCriterion("o_state >=", value, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateLessThan(Integer value) {
            addCriterion("o_state <", value, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateLessThanOrEqualTo(Integer value) {
            addCriterion("o_state <=", value, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateIn(List<Integer> values) {
            addCriterion("o_state in", values, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateNotIn(List<Integer> values) {
            addCriterion("o_state not in", values, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateBetween(Integer value1, Integer value2) {
            addCriterion("o_state between", value1, value2, "o_state");
            return (Criteria) this;
        }

        public Criteria andO_stateNotBetween(Integer value1, Integer value2) {
            addCriterion("o_state not between", value1, value2, "o_state");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}